import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
export default new Router({
    routes:[
        {
            path:'/',
            name:'home',
            component:()=>import('./components/HelloWorld.vue'),
            children:[
                {
                    path:'index',
                    name:'index',
                    component:()=>import('./components/index.vue')
                },
                {
                    path:'/',
                    redirect:'/index'
                },
                 {
                    path:'shop',
                    name:'shop',
                    component:()=>import('./components/shop.vue')
                }
            ]
        }
    ]
})